package com.xing.game.bean;

import com.xing.game.bean.api.Bean;
import com.xing.game.bean.api.BeanFactory;

public class AutoInjectProcessorChain extends AbstractBeanProcessorChain{
	
	public AutoInjectProcessorChain(BeanFactory beanFactory) {
		beanProcessors.add(new BeanTypeRefInjectProcessor(beanFactory));
	}

	public boolean isMatch(Class<?> beanClass){
		return beanClass.getAnnotation(Bean.class) != null;
	}


	@Override
	public Object clone() throws CloneNotSupportedException {
		return super.clone();
	}
	
}
